home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / rsyslog.postrm < prev    next >
Encoding:
Text File  |  2010-11-30  |  593 b   |  26 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if [ "$1" = "remove" ]; then
  6.     [ -f /etc/logrotate.d/rsyslog ] && mv -f /etc/logrotate.d/rsyslog /etc/logrotate.d/rsyslog.disabled
  7. fi
  8.  
  9. if [ "$1" = "purge" -o "$1" = "dissappear" ]; then
  10.     [ -f /etc/logrotate.d/rsyslog.disabled ] && rm -f /etc/logrotate.d/rsyslog.disabled
  11. fi
  12.  
  13. if [ "$1" = "remove" ]; then
  14.     # Cleanup sendsigs omit file to avoid false positives from piuparts
  15.     rm -f /lib/init/rw/sendsigs.omit.d/rsyslog
  16. fi
  17.  
  18. # Automatically added by dh_installinit
  19. if [ "$1" = "purge" ] ; then
  20.     update-rc.d rsyslog remove >/dev/null
  21. fi
  22. # End automatically added section
  23.  
  24.  
  25. exit 0
  26.